import App from './App'
// 引入全局uView
import uView from '@/uni_modules/uview-ui'
//引入封装的request请求
import request from './tools/request.js'
//引入自定义tabBar
import tabBar from "@/components/tabBar.vue"
Vue.component('tabBar', tabBar)
Vue.use(uView)
// uni.$u.config.unit = 'rpx'
// 混入
import baseConfig from './common/mixin'
Vue.mixin(baseConfig)
import store from '@/store'
Vue.prototype.$store = store;
//过滤
import '@/common/filters'
//本地
// Vue.prototype.$baseUrl = 'http://192.168.1.123:9274/';
Vue.prototype.$baseUrl = 'https://pyw.peiyiyiliao.com/prod-api';

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})

Vue.prototype.$request = request
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif

// 引入请求封装
require('./util/request/index')(app)